<!--扩展js等-->
<script src="__STATIC__/index/js/doctor.js"></script>
<script type="text/javascript" src="__STATIC__/common/layer/layer.js"></script>
<script src="__STATIC__/common/ajax-form.js"></script>
<script src="__STATIC__/index/js/jquery.date_input.pack.js"></script>
<script src="__STATIC__/index/js/left_bar.js"></script>
<script src="__STATIC__/index/js/record.js"></script>
<script>
    $(function(){
        $(".nav .content .right").mouseenter(function(){
            $(".index_html .nav .content .right .down_box").slideDown();
        });
        $(" .nav .content .right").mouseleave(function(){
            $(".index_html .nav .content .right .down_box").slideUp();
        })
    })
</script>



<script>

    var getPermission = '{$getPermissionArr|default=0}'
    var controller = '{$Request.controller}';
    var userId = "{$userId|default=0}";
    var path = '';
    var href = '';
    var arr = [];

    //获取当前btn btn-primary btn-xs  所有的 href
    //var href = $("a").attr("href");
    //
    $(document).ready(function() {

        if(userId != 1 && userId){
//  console.log(length);
            $(".btn-permission").each(function(i){
                var href = $(this).attr('data-url');

                if(getPermission.indexOf(href) > 0){

                }else{
                    $(this).css('display','none');
                }

            });
        }

    });

</script>